package org.example.service;

import org.apache.ibatis.annotations.Param;
import org.example.entity.User;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.entity.Comments;
import org.example.mapper.CommentsMapper;

import java.util.List;

@Service
public class CommentsService extends ServiceImpl<CommentsMapper, Comments> {
 public  List<Comments> selectTheUserForTheCommentId(Integer commentId){
   return  baseMapper.selectTheUserForTheCommentId(commentId);
 }
 public List<Comments> selectUserByCommentId(@Param("targetId")String targetId){
   return  baseMapper.selectUserByCommentId(targetId);
 }
}
